from django.urls import path
from . import views
from rest_framework_jwt.views import obtain_jwt_token
urlpatterns = [
    # path('/', views.IndexView.as_view()),
    # 点赞
    path('spit/<int:pk>/updatethumbup/', views.PutDianZan.as_view()),
    # 获取吐槽评论
    path('spit/<int:pk>/children/', views.Pinglun.as_view()),
    # 收藏
    path('spit/<int:pk>/collect/', views.PutShouCang.as_view()),



]
#查询吐槽，吐槽详情
from rest_framework.routers import DefaultRouter
router = DefaultRouter()
router.register(r'spit',views.Getlist, basename='spit')
urlpatterns += router.urls